﻿<%@ Page Language="C#" MasterPageFile="~/MuseumOwner.master" AutoEventWireup="true"
    CodeFile="CategoryDetails.aspx.cs" Inherits="CategoryDetails" Title="Categories" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script language="javascript" type="text/javascript">
    function Validate() {
            if (document.getElementById("<%=txtCatergoryName.ClientID%>").value == "") {
                alert("Please enter Category.");
                document.getElementById("<%=txtCatergoryName.ClientID%>").focus();
                return false;
            }
        }
</script>
    <table width="100%" cellspacing="3" cellpadding="3" border="0">
        <tr>
            <td colspan="3" align="center">
                <b style="font-size: x-large;">Category Details</b>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblMuseumName" Text="Museum" runat="server"></asp:Label>
            </td>
            <td>
                :
            </td>
            <td>
                <asp:DropDownList ID="ddlMuseum" runat="server" Width="200px" DataTextField="MuseumName"
                    DataValueField="MuseumID">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblCatergoryName" Text="Catergory Name" runat="server"></asp:Label>
            </td>
            <td>
                :
            </td>
            <td>
                <asp:TextBox ID="txtCatergoryName" runat="server" Width="200px" MaxLength="100"></asp:TextBox>
                &nbsp;<b style="color: red;">*</b>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                <asp:Button ID="btnSubmit" Text="Submit" runat="server" OnClick="btnSubmit_Click"
                    OnClientClick="return Validate();" />&nbsp;&nbsp;
                <asp:Button ID="btnReset" Text="Reset" runat="server" 
                     style="height: 26px; width: 50px;" onclick="btnReset_Click" />
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:Label ID="lblMessage" runat="server" ForeColor="Red" Visible="true"></asp:Label>
            </td>
        </tr>
    </table>
</asp:Content>
